<?php $this->render("header.php");?>

<div class="main_box">   
    <div class="w_986">
    <div class="f_l plate_216 plate">
        <div class="list_plate_bg top_bg"></div>
        <div class="list_plate_bg mid_bg" id="list_l_mid">
            <h2 class="h2_title">近期召开的会议</h2>
            <div class="list_l_nav">
          		<a href="<?php echo $this->baseUrl;?>/?a=list&t=1" class="icon_all list_nav <?php if ($this->t ==1)echo "selected";?>">最近一个月</a> 
                <a href="<?php echo $this->baseUrl;?>/?a=list&t=3" class="icon_all list_nav <?php if ($this->t ==3)echo "selected";?>">最近三个月</a> 
                <a href="<?php echo $this->baseUrl;?>/?a=list&t=6" class="icon_all list_nav <?php if ($this->t ==6)echo "selected";?>">最近半年</a> 
                <a href="<?php echo $this->baseUrl;?>/?a=list&t=12" class="icon_all list_nav <?php if ($this->t ==12)echo "selected";?>">最近一年</a>
            </div>
            
            <div class="list_nav_year link_black" id="list_nav_year">
              <a href="#" class="icon_all year_btn">按年查询</a>
              <div class="nav_year ">
              <?php foreach($this->arr_year as $v):
              	if (intval($v['year']) < 1990)continue;
              	?>
              	<a href="<?php echo $this->baseUrl;?>/?a=list&year=<?php echo $v['year'];?>"><?php echo $v['year'];?></a>
              	<?php endforeach;?>
                <div class="clear"></div>
              </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="list_plate_bg bot_bg"></div>
    </div>
    <div class="f_r plate_756 plate">
        <div class="list_plate_bg top_bg"></div>
        <div class="list_plate_bg mid_bg" id="list_content_mid">
            <h2 class="h2_title">会议列表</h2>
            <div class="list_top_seach">
            <form method=post action="<?php echo $this->baseUrl;?>/?a=list">
            	<input name="query" size="40" value="<?php echo htmlspecialchars($this->query);?>" type="text" class="list_input_style" />
                <input type="submit" value="搜 索" class="btn_blue30 line_bg_all" style="margin-left:5px;"/>
            </form>
            </div>
            <div class="list_content" style=" min-height:200px;">
            <?php foreach($this->list as $v):?>
            	<dl class="home_plate_dl">
                	<dt class="icon_all"><a href="<?php echo $v['url'];?>" title="<?php echo $v['name'];?>"><?php echo $v['name'];?></a></dt>
                    <dd>地点：<?php echo $v['address'];?></dd>
                    <dd>时间：<?php echo substr($v['startdate'], 0, 10);?></dd>
                </dl>
            <?php endforeach;?>
            </div>
            
            <div class="list_page_box link_black">
                <div class="list_page f_r">
<?php
$ext = '&t=' . $this->t . '&year=' . $this->year . '&query=' . urlencode($this->query);
$indexurl =$this->url($this->baseUrl,'index', 'list', 'nowp=1' . $ext);
$lasturl = $this->url($this->baseUrl, 'index', 'list', 'nowp=' . $this->page['totalpage'] . $ext);
print <<<EOT
                    <a href="{$indexurl}"><i>&lt;&lt;</i>首页</a>
EOT;
foreach ($this->pagenum as $v) {
	$url =$this->url($this->baseUrl, "index", 'list', 'nowp=' . $v . $ext);
	if ($v != $this->page['nowp'])
		echo '<a href="' . $url . '" title="' . $v . '">' . $v . '</a>';
	else
		echo '<span class="selected">' . $v . '</span>';
}
print <<<EOT
<a href="{$lasturl}">末页<i>&gt;&gt;</i></a>
EOT;
?>
                </div>
                <div class="clear"></div>
            </div>
                    
            <div class="clear"></div>
        </div>
        <div class="list_plate_bg bot_bg"></div>
    </div>
    <div class="clear"></div>
    </div>    
    
</div>

<?php $this->render("footer.php");?>

<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
var navHeight = $('#list_content_mid').height();
$('#list_l_mid').css({'height':navHeight + 'px'});

$('#list_nav_year').hover(function() {
	$(this).children('.nav_year').show();
},function() {
	$(this).children('.nav_year').hide();
});
</script>
</body>
</html>
